SD/eMMC Test

Create a Vivado Project

Add parameter configurations on the existing hardware platform based on the schematic:

The eMMC is directly soldered onto the core board and connected to SD1 on the PS side. The TF card on the development board is connected to SD0 on the PS side.

Schematic:

VeryCapture_20250619173505

Configuration Interface: Note that the TF card corresponding to SD0 uses the Card Detect pin, which corresponds to MIO9.

VeryCapture_20250619173608

After synthesis and implementation, export the new .xsa file.

VeryCapture_20250618121240

Create a Vitis Project

In Vitis, update the platform project: Right-click the created platform project, click "Update Hardware Specification," select the .xsa file path. The following pop-up box will appear; click OK, which indicates a successful update.

VeryCapture_20250618121412

Because the application project needs to use a file system, you need to modify the BSP and add the file system-related package (xilffs):

VeryCapture_20250619174829

Rebuild the platform project.

Next, create a new empty .c application project and add a .c file.

VeryCapture_20250618121953

Add the corresponding code.

The application project code supports testing both the TF card and eMMC.

The test code is as follows:

 

Compile and Debug

Follow the compilation and debugging steps in the IIC documentation.

Before testing the TF card, insert the TF card first.

Connect the JTAG USB cable and the PS UART cable, then power the development board.

In Vitis, enter debug mode, download the program, and execute it. Debugging results:

image-20250813192237146